package top.ranzhang.bean.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author ran
 * @since 2025-06-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("teaching_resources")
public class TeachingResources implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "resource_id", type = IdType.AUTO)
    private Integer resourceId;

    @TableField("title")
    private String title;

    @TableField("type")
    private String type;

    @TableField("subject")
    private String subject;

    @TableField("grade_level")
    private String gradeLevel;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("upload_date")
    private LocalDateTime uploadDate;

    @TableField("uploader_id")
    private Integer uploaderId;

    @TableField("file_path")
    private String filePath;


}
